that packets between domU and the bridge are not firewalled, so if iptables is
not installed, then there is no worry.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
local c="-D"
fi
- iptables "$c" FORWARD -m physdev --physdev-in "$vif" "$@" -j ACCEPT
+ iptables "$c" FORWARD -m physdev --physdev-in "$vif" "$@" -j ACCEPT ||
+ fatal "iptables $c FORWARD -m physdev --physdev-in $vif $@ -j ACCEPT failed"
}
#
function handle_iptable()
{
+ if ! which iptables >&/dev/null
+ then
+ return
+ fi
+
if [ "$ip" != "" ]
then
local addr